<?php echo $this->Session->flash('al'); ?>
	<span>Submitted <?php echo $doc_type ?></span>
		<table cellpadding="0" cellspacing="0">
			<tr><th>File Name:</th><th>File size:</th><th>Submission Date:<br />(YYYY-MM-DD)</th><th>Remove Submission:</th></tr>
		<?php
		foreach ($data as $line => $at) {
				echo (($line+1)%2==1)? '<tr class="odd">': '<tr class="even">';
				echo "\n<td>{$at['Attachment']['file_name']}</td>";
				echo "\n<td>{$at['Attachment']['file_size']}</td>";
			
				$date = explode(' ', $at['Attachment']['modified']);
				$date = $date[0];
				echo "<td>{$date}</td>";
				echo '<td>' . $html->link('remove', array('controller' => 'Attachments', 
																		'action' => 'delete', $at['Attachment']['id']), null, 
																		'Are you sure your want to remove this submission?');
				echo "</td>";
				echo '</tr>';
		}
		?>
		</table>